package exception.test;

public class test {
    public static void main(String[] args) {
        Person person = new Person();

        try {
            person.setAge(1000);
        } catch (IllegalAgeException e) {
            System.out.println(e.getMessage());
        }
    }
}
